﻿using System;

namespace SteeringBehaviors
{
	// Token: 0x02000218 RID: 536
	public class Flee : SteerBehavior
	{
		// Token: 0x06000B46 RID: 2886 RVA: 0x0005ED50 File Offset: 0x0005CF50
		public Flee(MovementCharacter agent, IKinematic target) : base(agent, target)
		{
		}

		// Token: 0x06000B47 RID: 2887 RVA: 0x0005ED5C File Offset: 0x0005CF5C
		public override SteeringOutput GetSteering()
		{
			this.pSteering.linear = this.agent.transform.position - this.target.position;
			this.pSteering.linear.y = 0f;
			this.pSteering.linear.Normalize();
			this.pSteering.linear = this.pSteering.linear * this.agent.MaxAccel;
			return this.pSteering;
		}
	}
}
